import { defineStore } from 'pinia'
export const useAclStore = defineStore('acl', {
    state: (): any => ({
      admin: false,
      role: [],
      permission: [],
    }),
    getters: {
      getAdmin: (state) => state.admin,
      getRole: (state) => state.role,
      getPermission: (state) => state.permission,
    },
    actions: {
      setFull(admin: boolean) {
        this.admin = admin
      },
      setRole(role: string[]) {
        this.role = role
      },
      setPermission(permission: string[]) {
        this.permission = permission
      },
    },
  })
  